package net.xiezihao.fuxiclient.demo.fallback;

import net.xiezihao.fuxiclient.demo.service.MyFeignClient;
import org.springframework.stereotype.Component;

@Component
public class FallBackDemo implements MyFeignClient {
    @Override
    public String findById(int id) {
        System.out.println("出现异常了！！！！");
        return null;
    }

    @Override
    public String getUser() {
        System.out.println("没有用户");
        return null;
    }
}
